from datetime import datetime          #引用datetime库
now = datetime.now()
print(now)
print(now.strftime("%x"))
print(now.strftime("%X"))
